/** * @Description: loading组件 * * @author: 风信子 * * @date: 2022/2/14 */
<template>
  <div class="loading">
    <div class="container">
      <img :src="loadingImg" alt="加载中" />
      <div class="text">loading...</div>
    </div>
  </div>
</template>

<script>
import loadingImg from "../../assets/img/loadingIcon.gif";
export default {
  // eslint-disable-next-line vue/multi-word-component-names
  name: "loading",
  data() {
    return {
      loadingImg: loadingImg,
      loading: true,
    };
  },
  components: {},
  mounted() {},
  methods: {},
};
</script>

<style scoped lang="less">
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1000000;
  .container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #1067ee;
    img {
      width: 100px;
    }
    .text {
      font-size: 25px;
      color: #1067ee;
      white-space: nowrap;
    }
  }
}

@media screen and(min-width: 1870px) {
  // 1920
  .loading {
    .container {
      width: 150px;
      //margin-left: -90px;
    }
    .text {
      font-size: 30px;
    }
  }
}
</style>
